from django.conf.urls.defaults import patterns, include, url
from TeamPower.view import hello
from TeamPower.view import search_form
from TeamPower.view import index
from TeamPower import view
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
from settings import STATIC_ROOT
urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'TeamPower.views.home', name='home'),
    # url(r'^TeamPower/', include('TeamPower.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
    #(r'^$', 'blog.views.default'),
    
    (r'^hello/$', hello),
    (r'^123/$',search_form),
    (r'^$',index),    
   # url(r'^resource/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT, 'show_indexes':True}),                   
    url(r'^resource/(?P<path>.*)$','django.views.static.serve',{'document_root':'D:/Bingo/TeamPower/src/TeamPower/'}),
    #(r'^js/(?P</path><path>.*)$', 'django.views.static.serve', {'document_root': '/var/www/django-demo/js'}),

)

